//
//  NavBar.h
//  PlantNanny
//
//  Created by Joueu on 14-12-24.
//
//

#ifndef __PlantNanny__NavBar__
#define __PlantNanny__NavBar__


#include "cocos2d.h"
#include "cocos-ext.h"

USING_NS_CC;
USING_NS_CC_EXT;

class NavBar:public Sprite
{
public:
    CREATE_FUNC(NavBar);
    virtual bool init();
    void setHeaderName(const std::string &header);
private:
    Label *header;
    void returnBtnPressed(Ref *pSender, ui::Button::TouchEventType type);
};

#endif /* defined(__PlantNanny__NavBar__) */
